package com.hbu.product.hbumallproduct.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbu.product.hbumallproduct.entity.AttrAttrgroupRelationEntity;
import com.hbu.product.hbumallproduct.vo.AttrRelationDeleteVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ????&???Է???????
 *
 * @author zhaoxiaohan
 * @email 13315217827@163.com
 * @date 2022-10-27 22:15:39
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    void updateAttrGroupIdByAttrId(@Param("attrId") Long attrId, @Param("attrGroupId") Long attrGroupId);

    void relationDelete(@Param("attrRelationDeleteVOList") AttrRelationDeleteVO[] attrRelationDeleteVOList);

    List<Long> getAttrIdByAttrGroupId(@Param("attrGroupId") Long attrGroupId);

}
